package com.wiloon.java8x.performance;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Roy on 2015/10/26;
 */
public class MemTest {
    public static void main(String... args) {
        List list = new ArrayList();
        for (int i = 0; i < Integer.parseInt(args[0]); i++)
            list.add(new Foo("abc"));
    }

    private static class Foo {
        private String field;

        public Foo(String str) {
            field = str;
        }
    }
}

